const request = require('../utils/request.js').request;
export function loginTest(data) {
    return request('post', '/base/OAuthToken', data)
}
export function register(data) {
    return request('post', '/base/RegisterOnWx', data)
}
export function pay(data) {
    return request('post', '/orders/onPay', data)
}
export function getIndexService(data) {
    return request('get', '/pageSetting/getPageSettingPublic', data)
}
export function getIndexClass(data) {
    return request('get', '/sysDictionary/findSysDictionaryNoToken', data)
}
export function getServiceDetail(data) {
    return request('get', '/pageSetting/FindPageSettingAndInfo', data)
}
export function getUserDetailsList() {
    return request('get', '/userDetails/getUserDetailsAllPublic')
}
export function getSearchUser(data) {
    return request('get', '/userDetails/findUserDetailByServerId', data)
}
export function createOrder(data) {
    return request('post', '/orders/createOrders', data)
}
export function getAddressList(data) {
    return request('get', '/sysAddress/getSysAddressList', data)
}
export function addAddress(data) {
    return request('post', '/sysAddress/createSysAddress', data)
}
export function delAddress(id) {
    return request('delete', '/sysAddress/deleteSysAddress?ID=' + id,)
}
export function putAddress(data) {
    return request('put', '/sysAddress/updateSysAddress', data)
}
export function getAddress(data) {
    return request('get', '/sysAddress/findSysAddress', data)
}
export function getOrderList(data) {
    return request('get', '/orders/getOrdersList', data)
}
export function changeOrder(data) {
    return request('get', '/orders/changeOrderStates', data)
}
export function createUser(data) {
    return request('post', '/userDetails/createUserDetails', data)
}